package cc.comac.mom.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipDevHistoryService;
import cc.comac.mom.bean.EquipDevHistoryBean;
import cc.comac.mom.util.ResultBean;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/EquipDevHistory")
public class EquipDevHistoryController {

	@Autowired
	private EquipDevHistoryService equipDevHistoryService;
	@ApiOperation("通过条件查询设备履历数据")
	@RequestMapping(value = "/selectBySomeFields",method = RequestMethod.POST)
	public ResultBean selectBySomeFields(@RequestBody EquipDevHistoryBean equipDevHistoryBean) {
		ResultBean selectBySomeFields = equipDevHistoryService.selectBySomeFields(equipDevHistoryBean);
		return selectBySomeFields;
	}
}
